import { get } from '../../utils/request';

/**
 * 获取会话历史
 * @param agentId 智能体ID
 * @param pageNum 页码
 * @param pageSize 每页数量
 */
export const getSessionHistory = (agentId: string | number, pageNum = 1, pageSize = 10) => {
  return get('/api/starhub/message/sessions', { agentId, pageNum, pageSize });
};

/**
 * 获取指定会话的所有消息记录
 * @param chatId 会话ID
 */
export const getSessionMessages = (chatId: string | number) => {
  return get('/api/starhub/message/messages', { chatId });
};
